package com.leeon.annotation;

import java.lang.reflect.Method;

public class UseCaseTracker {

	public static void trackUseCases(Class<?> c) {
		for(Method m : c.getDeclaredMethods()) {
			UseCase uc = m.getAnnotation(UseCase.class);
			if(uc != null) {
				System.out.println("id " + uc.id() + "  desc " + uc.desc());
			}
		}
	}
	
	public static void main(String[] args) {
		//trackUseCases(PasswordUtils.class);
		String a = "100%";
		System.out.println(a.length());
		String b = a.substring(0, 2);
		System.out.println(b);
	}
}
